﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace LanCommunity
{
    public partial class EditDeviceForm : Form
    {
        private string host = string.Empty; //host
        private string desc = string.Empty; //opis

        /// <summary>
        /// Host
        /// </summary>
        public string Host
        {
            get
            {
                return tbHost.Text;
            }
            set
            {
                host = value;
            }
        }

        /// <summary>
        /// Opis
        /// </summary>
        public string Description
        {
            get
            {
                return tbDescription.Text;
            }
            set
            {
                desc = value;
            }
        }

        public EditDeviceForm(string host) :
            this(host, string.Empty)
        {
        }

        public EditDeviceForm(string host, string description)
        {
            InitializeComponent();

            //host i opis
            this.tbHost.Text = host;
            this.tbDescription.Text = description;
        }
    }
}
